package cn.stylefeng.guns.modular.launchpad.service;

import cn.stylefeng.guns.core.common.page.LayuiPageFactory;
import cn.stylefeng.guns.modular.launchpad.entity.Receive;
import cn.stylefeng.guns.modular.launchpad.mapper.ReceiveMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public  class ReceiveService extends ServiceImpl<ReceiveMapper, Receive>{

    @Autowired
    private ReceiveMapper receiveMapper;

    public IPage<Receive> getList(Receive receive) {
        Page<Receive> pageParam = LayuiPageFactory.defaultPage();
        return receiveMapper.getList(pageParam, receive);
    }
}
